package org.wmq.javafxmapcollectioncs.model.Entity;

import java.time.LocalDate;

public class MapEntity {
    private Long id;
    private String name;
    private String url;
    private String introduction;
    private String mapType;
    private String medium;
    private LocalDate publicationTime;
    private LocalDate collectionTime;

    public MapEntity(String name, String url, String introduction, String mapType, String medium, LocalDate publicationTime, LocalDate collectionTime) {
        this.name = name;
        this.url = url;
        this.introduction = introduction;
        this.mapType = mapType;
        this.medium = medium;
        this.publicationTime = publicationTime;
        this.collectionTime = collectionTime;
    }

    // 添加 id 的 getter 和 setter
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getMapType() {
        return mapType;
    }

    public void setMapType(String mapType) {
        this.mapType = mapType;
    }

    public String getMedium() {
        return medium;
    }

    public void setMedium(String medium) {
        this.medium = medium;
    }

    public LocalDate getPublicationTime() {
        return publicationTime;
    }

    public void setPublicationTime(LocalDate publicationTime) {
        this.publicationTime = publicationTime;
    }

    public LocalDate getCollectionTime() {
        return collectionTime;
    }

    public void setCollectionTime(LocalDate collectionTime) {
        this.collectionTime = collectionTime;
    }
}